// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.ai;

import zombie.iso.IsoUtils;

public final class WalkingOnTheSpot {
    private float x;
    private float y;
    private float time;

    public boolean check(float x1, float y1) {
        if (IsoUtils.DistanceToSquared(this.x, this.y, x1, y1) < 0.010000001F) {
            this.time = this.time + zombie.GameTime.getInstance().getMultiplier();
        } else {
            this.x = x1;
            this.y = y1;
            this.time = 0.0F;
        }

        return this.time > 400.0F;
    }

    public void reset(float x1, float y1) {
        this.x = x1;
        this.y = y1;
        this.time = 0.0F;
    }
}
